﻿Feature: Display Vertical Menu
	In order to display a list of choices so that long descriptions are not truncated
	As a system
	I want to display the choices to the user as a vertical menu 

Scenario: options are numbered
	Given a menu with fruit options of 
	 |Fruit|
	 |apples|
	 |pears|
	 |oranges|
	When I view the menu
	Then the option numbers should be 
	|Sequence|
	|1|
	|2|
	|3|
	|4|

Scenario: There should only be 1 exit menu
	Given a menu with exit text of "quit"
	When I view the menu
	Then there should be only 1 exit menu

Scenario: a description of what to type to exit should be visible
	Given a menu with exit text of "Quit now"
	When I view the menu
	Then I should see the text "Quit now" next to the exit menu.

Scenario: Exit text is displayed
	Given a menu 
	When I view the menu
	Then the last option should be a quit option

Scenario: Long List of Items are trucated 
	Given a menu with Exit text of "Quit" and menu width of 19 and fruit options of 
	 |Fruit|
	 |Succulent Bramby Apples imported all the way from South Africa|
	 |Succulent Pears imported all the way from China|
	 |Succulent Oranges imported all the way from Korea|
	When I view the menu
	Then the menu titles should be 
	|Title|
	|Succulent Bramby Ap|
	|Succulent Pears imp|
	|Succulent Oranges i|
	|Quit|
	


